package vip.specimen.system.datasource.validation;

import lombok.Getter;
import lombok.Setter;
import vip.specimen.system.datasource.validation.annotation.SuffixIsExist;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/10 15:10
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Getter
@Setter
public class SystemResourceSuffixValidation {
    @NotBlank(message = "文件后缀不能为空")
    @SuffixIsExist
    @Pattern(regexp = "^.[a-zA-z]+[a-zA-z|0-9]+", message = "文件后缀格式不正确")
    private String suffix;
}
